package org.mobiletrain.android43_activeandroid;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

@Table(name = "tb_student")
public class Student extends Model {
    @Column(name = "name", unique = true)
    private String name;

    @Column(name = "age")
    private int age;

    @Column(name = "sex")
    private String sex;


    @Column(name = "grade")
    private String grade;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }


    public Student(String name, int age, String sex, String grade) {
        super();
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.grade = grade;
    }

    public Student() {
        super();
    }
}
